<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="4.0" encoding="iso-8859-1" indent="yes"/>
<xsl:template match="/">
  <li class="page">
    <a href="#" class="titlepage">Photo Albums</a>
    <ul >
      <xsl:apply-templates select="galleries/continent[@enabled='1']"/>
    </ul>
  </li>
  <li class="page">
    <a class="titlepage" href="page-gear.html">Photo Equipment</a>
  </li>
  <li class="page">
    <a class="titlepage" href="page-about.html">Resume</a>
  </li>

  <!-- li class="page">
    <a class="titlepage" href="page-contact.html?id=1">Contact</a>
  </li -->
</xsl:template>

<xsl:template match="continent">
	<li class="album">
    <span>
      <xsl:value-of select="@name"/>
    </span>
    <ul><xsl:apply-templates select="country[@enabled='1']"/></ul>
	</li>
</xsl:template>

<xsl:template match="country">
	<li class="album">
    <span>
      <xsl:value-of select="@name"/>
    </span>
    <ul>
      <xsl:apply-templates select="city[@enabled='1']"/>
    </ul>
	</li>
</xsl:template>
<xsl:template match="city">
	<li class="album">
    <a href="album.ashx?page={@id}" rel="{@default}"><xsl:value-of select="@name"/></a>
	</li>
</xsl:template>



</xsl:stylesheet>
 